home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / inspector / inIFileSearch.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  11KB  |  262 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM inIFileSearch.idl
  3.  */
  4.  
  5. #ifndef __gen_inIFileSearch_h__
  6. #define __gen_inIFileSearch_h__
  7.  
  8.  
  9. #ifndef __gen_inISearchProcess_h__
  10. #include "inISearchProcess.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIFile; /* forward declaration */
  18.  
  19. class nsISupportsArray; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    inIFileSearch */
  23. #define INIFILESEARCH_IID_STR "efa53257-526d-4350-9088-343a510346b8"
  24.  
  25. #define INIFILESEARCH_IID \
  26.   {0xefa53257, 0x526d, 0x4350, \
  27.     { 0x90, 0x88, 0x34, 0x3a, 0x51, 0x03, 0x46, 0xb8 }}
  28.  
  29. class NS_NO_VTABLE inIFileSearch : public inISearchProcess {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(INIFILESEARCH_IID)
  33.  
  34.   /* attribute wstring basePath; */
  35.   NS_IMETHOD GetBasePath(PRUnichar * *aBasePath) = 0;
  36.   NS_IMETHOD SetBasePath(const PRUnichar * aBasePath) = 0;
  37.  
  38.   /* attribute boolean returnRelativePaths; */
  39.   NS_IMETHOD GetReturnRelativePaths(PRBool *aReturnRelativePaths) = 0;
  40.   NS_IMETHOD SetReturnRelativePaths(PRBool aReturnRelativePaths) = 0;
  41.  
  42.   /* unsigned long getDirectoryDepth (in nsIFile aDir); */
  43.   NS_IMETHOD GetDirectoryDepth(nsIFile *aDir, PRUint32 *_retval) = 0;
  44.  
  45.   /* nsISupportsArray getSubDirectories (in nsIFile aDir); */
  46.   NS_IMETHOD GetSubDirectories(nsIFile *aDir, nsISupportsArray **_retval) = 0;
  47.  
  48.   /* attribute wstring filenameCriteria; */
  49.   NS_IMETHOD GetFilenameCriteria(PRUnichar * *aFilenameCriteria) = 0;
  50.   NS_IMETHOD SetFilenameCriteria(const PRUnichar * aFilenameCriteria) = 0;
  51.  
  52.   /* attribute wstring textCriteria; */
  53.   NS_IMETHOD GetTextCriteria(PRUnichar * *aTextCriteria) = 0;
  54.   NS_IMETHOD SetTextCriteria(const PRUnichar * aTextCriteria) = 0;
  55.  
  56.   /* attribute nsIFile searchPath; */
  57.   NS_IMETHOD GetSearchPath(nsIFile * *aSearchPath) = 0;
  58.   NS_IMETHOD SetSearchPath(nsIFile * aSearchPath) = 0;
  59.  
  60.   /* attribute boolean searchRecursive; */
  61.   NS_IMETHOD GetSearchRecursive(PRBool *aSearchRecursive) = 0;
  62.   NS_IMETHOD SetSearchRecursive(PRBool aSearchRecursive) = 0;
  63.  
  64.   /* readonly attribute unsigned long directoriesSearched; */
  65.   NS_IMETHOD GetDirectoriesSearched(PRUint32 *aDirectoriesSearched) = 0;
  66.  
  67.   /* readonly attribute nsIFile currentDirectory; */
  68.   NS_IMETHOD GetCurrentDirectory(nsIFile * *aCurrentDirectory) = 0;
  69.  
  70.   /* nsIFile getFileResultAt (in long aIndex); */
  71.   NS_IMETHOD GetFileResultAt(PRInt32 aIndex, nsIFile **_retval) = 0;
  72.  
  73. };
  74.  
  75. /* Use this macro when declaring classes that implement this interface. */
  76. #define NS_DECL_INIFILESEARCH \
  77.   NS_IMETHOD GetBasePath(PRUnichar * *aBasePath); \
  78.   NS_IMETHOD SetBasePath(const PRUnichar * aBasePath); \
  79.   NS_IMETHOD GetReturnRelativePaths(PRBool *aReturnRelativePaths); \
  80.   NS_IMETHOD SetReturnRelativePaths(PRBool aReturnRelativePaths); \
  81.   NS_IMETHOD GetDirectoryDepth(nsIFile *aDir, PRUint32 *_retval); \
  82.   NS_IMETHOD GetSubDirectories(nsIFile *aDir, nsISupportsArray **_retval); \
  83.   NS_IMETHOD GetFilenameCriteria(PRUnichar * *aFilenameCriteria); \
  84.   NS_IMETHOD SetFilenameCriteria(const PRUnichar * aFilenameCriteria); \
  85.   NS_IMETHOD GetTextCriteria(PRUnichar * *aTextCriteria); \
  86.   NS_IMETHOD SetTextCriteria(const PRUnichar * aTextCriteria); \
  87.   NS_IMETHOD GetSearchPath(nsIFile * *aSearchPath); \
  88.   NS_IMETHOD SetSearchPath(nsIFile * aSearchPath); \
  89.   NS_IMETHOD GetSearchRecursive(PRBool *aSearchRecursive); \
  90.   NS_IMETHOD SetSearchRecursive(PRBool aSearchRecursive); \
  91.   NS_IMETHOD GetDirectoriesSearched(PRUint32 *aDirectoriesSearched); \
  92.   NS_IMETHOD GetCurrentDirectory(nsIFile * *aCurrentDirectory); \
  93.   NS_IMETHOD GetFileResultAt(PRInt32 aIndex, nsIFile **_retval); 
  94.  
  95. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  96. #define NS_FORWARD_INIFILESEARCH(_to) \
  97.   NS_IMETHOD GetBasePath(PRUnichar * *aBasePath) { return _to GetBasePath(aBasePath); } \
  98.   NS_IMETHOD SetBasePath(const PRUnichar * aBasePath) { return _to SetBasePath(aBasePath); } \
  99.   NS_IMETHOD GetReturnRelativePaths(PRBool *aReturnRelativePaths) { return _to GetReturnRelativePaths(aReturnRelativePaths); } \
  100.   NS_IMETHOD SetReturnRelativePaths(PRBool aReturnRelativePaths) { return _to SetReturnRelativePaths(aReturnRelativePaths); } \
  101.   NS_IMETHOD GetDirectoryDepth(nsIFile *aDir, PRUint32 *_retval) { return _to GetDirectoryDepth(aDir, _retval); } \
  102.   NS_IMETHOD GetSubDirectories(nsIFile *aDir, nsISupportsArray **_retval) { return _to GetSubDirectories(aDir, _retval); } \
  103.   NS_IMETHOD GetFilenameCriteria(PRUnichar * *aFilenameCriteria) { return _to GetFilenameCriteria(aFilenameCriteria); } \
  104.   NS_IMETHOD SetFilenameCriteria(const PRUnichar * aFilenameCriteria) { return _to SetFilenameCriteria(aFilenameCriteria); } \
  105.   NS_IMETHOD GetTextCriteria(PRUnichar * *aTextCriteria) { return _to GetTextCriteria(aTextCriteria); } \
  106.   NS_IMETHOD SetTextCriteria(const PRUnichar * aTextCriteria) { return _to SetTextCriteria(aTextCriteria); } \
  107.   NS_IMETHOD GetSearchPath(nsIFile * *aSearchPath) { return _to GetSearchPath(aSearchPath); } \
  108.   NS_IMETHOD SetSearchPath(nsIFile * aSearchPath) { return _to SetSearchPath(aSearchPath); } \
  109.   NS_IMETHOD GetSearchRecursive(PRBool *aSearchRecursive) { return _to GetSearchRecursive(aSearchRecursive); } \
  110.   NS_IMETHOD SetSearchRecursive(PRBool aSearchRecursive) { return _to SetSearchRecursive(aSearchRecursive); } \
  111.   NS_IMETHOD GetDirectoriesSearched(PRUint32 *aDirectoriesSearched) { return _to GetDirectoriesSearched(aDirectoriesSearched); } \
  112.   NS_IMETHOD GetCurrentDirectory(nsIFile * *aCurrentDirectory) { return _to GetCurrentDirectory(aCurrentDirectory); } \
  113.   NS_IMETHOD GetFileResultAt(PRInt32 aIndex, nsIFile **_retval) { return _to GetFileResultAt(aIndex, _retval); } 
  114.  
  115. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  116. #define NS_FORWARD_SAFE_INIFILESEARCH(_to) \
  117.   NS_IMETHOD GetBasePath(PRUnichar * *aBasePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBasePath(aBasePath); } \
  118.   NS_IMETHOD SetBasePath(const PRUnichar * aBasePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBasePath(aBasePath); } \
  119.   NS_IMETHOD GetReturnRelativePaths(PRBool *aReturnRelativePaths) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReturnRelativePaths(aReturnRelativePaths); } \
  120.   NS_IMETHOD SetReturnRelativePaths(PRBool aReturnRelativePaths) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReturnRelativePaths(aReturnRelativePaths); } \
  121.   NS_IMETHOD GetDirectoryDepth(nsIFile *aDir, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectoryDepth(aDir, _retval); } \
  122.   NS_IMETHOD GetSubDirectories(nsIFile *aDir, nsISupportsArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubDirectories(aDir, _retval); } \
  123.   NS_IMETHOD GetFilenameCriteria(PRUnichar * *aFilenameCriteria) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilenameCriteria(aFilenameCriteria); } \
  124.   NS_IMETHOD SetFilenameCriteria(const PRUnichar * aFilenameCriteria) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilenameCriteria(aFilenameCriteria); } \
  125.   NS_IMETHOD GetTextCriteria(PRUnichar * *aTextCriteria) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextCriteria(aTextCriteria); } \
  126.   NS_IMETHOD SetTextCriteria(const PRUnichar * aTextCriteria) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextCriteria(aTextCriteria); } \
  127.   NS_IMETHOD GetSearchPath(nsIFile * *aSearchPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchPath(aSearchPath); } \
  128.   NS_IMETHOD SetSearchPath(nsIFile * aSearchPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchPath(aSearchPath); } \
  129.   NS_IMETHOD GetSearchRecursive(PRBool *aSearchRecursive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchRecursive(aSearchRecursive); } \
  130.   NS_IMETHOD SetSearchRecursive(PRBool aSearchRecursive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchRecursive(aSearchRecursive); } \
  131.   NS_IMETHOD GetDirectoriesSearched(PRUint32 *aDirectoriesSearched) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectoriesSearched(aDirectoriesSearched); } \
  132.   NS_IMETHOD GetCurrentDirectory(nsIFile * *aCurrentDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentDirectory(aCurrentDirectory); } \
  133.   NS_IMETHOD GetFileResultAt(PRInt32 aIndex, nsIFile **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileResultAt(aIndex, _retval); } 
  134.  
  135. #if 0
  136. /* Use the code below as a template for the implementation class for this interface. */
  137.  
  138. /* Header file */
  139. class inFileSearch : public inIFileSearch
  140. {
  141. public:
  142.   NS_DECL_ISUPPORTS
  143.   NS_DECL_INIFILESEARCH
  144.  
  145.   inFileSearch();
  146.  
  147. private:
  148.   ~inFileSearch();
  149.  
  150. protected:
  151.   /* additional members */
  152. };
  153.  
  154. /* Implementation file */
  155. NS_IMPL_ISUPPORTS1(inFileSearch, inIFileSearch)
  156.  
  157. inFileSearch::inFileSearch()
  158. {
  159.   /* member initializers and constructor code */
  160. }
  161.  
  162. inFileSearch::~inFileSearch()
  163. {
  164.   /* destructor code */
  165. }
  166.  
  167. /* attribute wstring basePath; */
  168. NS_IMETHODIMP inFileSearch::GetBasePath(PRUnichar * *aBasePath)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. NS_IMETHODIMP inFileSearch::SetBasePath(const PRUnichar * aBasePath)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176.  
  177. /* attribute boolean returnRelativePaths; */
  178. NS_IMETHODIMP inFileSearch::GetReturnRelativePaths(PRBool *aReturnRelativePaths)
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182. NS_IMETHODIMP inFileSearch::SetReturnRelativePaths(PRBool aReturnRelativePaths)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* unsigned long getDirectoryDepth (in nsIFile aDir); */
  188. NS_IMETHODIMP inFileSearch::GetDirectoryDepth(nsIFile *aDir, PRUint32 *_retval)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* nsISupportsArray getSubDirectories (in nsIFile aDir); */
  194. NS_IMETHODIMP inFileSearch::GetSubDirectories(nsIFile *aDir, nsISupportsArray **_retval)
  195. {
  196.     return NS_ERROR_NOT_IMPLEMENTED;
  197. }
  198.  
  199. /* attribute wstring filenameCriteria; */
  200. NS_IMETHODIMP inFileSearch::GetFilenameCriteria(PRUnichar * *aFilenameCriteria)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204. NS_IMETHODIMP inFileSearch::SetFilenameCriteria(const PRUnichar * aFilenameCriteria)
  205. {
  206.     return NS_ERROR_NOT_IMPLEMENTED;
  207. }
  208.  
  209. /* attribute wstring textCriteria; */
  210. NS_IMETHODIMP inFileSearch::GetTextCriteria(PRUnichar * *aTextCriteria)
  211. {
  212.     return NS_ERROR_NOT_IMPLEMENTED;
  213. }
  214. NS_IMETHODIMP inFileSearch::SetTextCriteria(const PRUnichar * aTextCriteria)
  215. {
  216.     return NS_ERROR_NOT_IMPLEMENTED;
  217. }
  218.  
  219. /* attribute nsIFile searchPath; */
  220. NS_IMETHODIMP inFileSearch::GetSearchPath(nsIFile * *aSearchPath)
  221. {
  222.     return NS_ERROR_NOT_IMPLEMENTED;
  223. }
  224. NS_IMETHODIMP inFileSearch::SetSearchPath(nsIFile * aSearchPath)
  225. {
  226.     return NS_ERROR_NOT_IMPLEMENTED;
  227. }
  228.  
  229. /* attribute boolean searchRecursive; */
  230. NS_IMETHODIMP inFileSearch::GetSearchRecursive(PRBool *aSearchRecursive)
  231. {
  232.     return NS_ERROR_NOT_IMPLEMENTED;
  233. }
  234. NS_IMETHODIMP inFileSearch::SetSearchRecursive(PRBool aSearchRecursive)
  235. {
  236.     return NS_ERROR_NOT_IMPLEMENTED;
  237. }
  238.  
  239. /* readonly attribute unsigned long directoriesSearched; */
  240. NS_IMETHODIMP inFileSearch::GetDirectoriesSearched(PRUint32 *aDirectoriesSearched)
  241. {
  242.     return NS_ERROR_NOT_IMPLEMENTED;
  243. }
  244.  
  245. /* readonly attribute nsIFile currentDirectory; */
  246. NS_IMETHODIMP inFileSearch::GetCurrentDirectory(nsIFile * *aCurrentDirectory)
  247. {
  248.     return NS_ERROR_NOT_IMPLEMENTED;
  249. }
  250.  
  251. /* nsIFile getFileResultAt (in long aIndex); */
  252. NS_IMETHODIMP inFileSearch::GetFileResultAt(PRInt32 aIndex, nsIFile **_retval)
  253. {
  254.     return NS_ERROR_NOT_IMPLEMENTED;
  255. }
  256.  
  257. /* End of implementation class template. */
  258. #endif
  259.  
  260.  
  261. #endif /* __gen_inIFileSearch_h__ */
  262.